libzdb: add compatibility with openssl 1.1
authorEneas U de Queiroz <[email protected]>
Thu, 24 May 2018 02:26:21 +0000 (23:26 -0300)
committerEneas U de Queiroz <[email protected]>
Thu, 24 May 2018 02:26:21 +0000 (23:26 -0300)
This patch merely updates the detection of the ssl library.

Signed-off-by: Eneas U de Queiroz <[email protected]>
libs/libzdb/Makefile
libs/libzdb/patches/030-openssl-1.1.patch [new file with mode: 0644]

index 1c172bd33c1a86166dc5ac6ac93acd0628fce155..1034d041d58f650f8d9f9fbcbf18223541b6591d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libzdb
 PKG_VERSION:=3.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_LICENSE:=GPL-3.0
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
diff --git a/libs/libzdb/patches/030-openssl-1.1.patch b/libs/libzdb/patches/030-openssl-1.1.patch
new file mode 100644 (file)
index 0000000..b4f16a1
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -141,7 +141,7 @@ AC_ARG_ENABLE([openssl],
+         else
+                 openssl="true"
+                 if test "x$enableval" = "xyes"; then
+-                        AC_CHECK_LIB([ssl], [SSL_library_init], [], [AC_MSG_ERROR([libssl not found])])
++                        AC_CHECK_LIB([ssl], [SSL_CTX_new], [], [AC_MSG_ERROR([libssl not found])])
+                         AC_CHECK_LIB([crypto], [SHA1_Init], [], [AC_MSG_ERROR([libcrypto not found])])
+                 else
+                         AC_MSG_CHECKING([for openssl in $enableval])